package com.hp.service.iml;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hp.dao.TypesDao;
import com.hp.model.Types;
import com.hp.service.TypesService;
@Service
public class TypesServiceiml implements TypesService{
	
	@Autowired
	private TypesDao tdao;

	@Override
	public List<Types> findAlltypes() {
		return tdao.findAlltypes();
	}

	@Override
	public Integer addtype(Types type) {
		return tdao.addtype(type);
	}

	@Override
	public Integer edittype(Types type) {
		return tdao.edittype(type);
	}

	@Override
	public Integer deltype(Integer id) {
		return tdao.deltype(id);
	}

	@Override
	public Types findtype(Integer id) {
		return tdao.findtype(id);
	}

}
